#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

void Test1()
{
	ListNode* plist=ListInit();
	ListPushBack(plist, 0);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);
	ListNode* pos = ListFind(plist, 2);
	if (pos != NULL)
	{
		ListErase(pos);
	}
	ListPrint(plist);
	ListDestroy(plist);
	plist = NULL;
}



int main()
{
	Test1();
	return 0;
}